//
//  TJPayWayController.m
//  Teleport
//
//  Created by xtjun on 2020/6/13.
//  Copyright © 2020 xtjun. All rights reserved.
//

#import "TJPayWayController.h"

@interface TJPayWayController ()

@end

@implementation TJPayWayController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.navigationBar.title = @"支付方式".localizedString;
    
    UIImageView *iconImageView = [UIImageView tj_addToView:self.view];
    UIImage *iconImage = [UIImage imageNamed:@"pay_add_background_icon"];
    iconImageView.image = iconImage;
    [iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.offset(54 + KNavBarHight);
        make.centerX.offset(0);
        make.width.offset(375);
        make.height.offset(212);
    }];
    
    
    UILabel *tipLabel = [UILabel lableWithSuperView:self.view font:UIFont_Px(14) color:UIColor_Hex(0x666666) title:@"请务必使用您本人的实名账户".localizedString textAlignment:NSTextAlignmentCenter];
    [tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(20);
        make.right.offset(-20);
        make.top.equalTo(iconImageView.mas_bottom).offset(20);
    }];
 
    
    UIButton *addButton = [UIButton buttonWithSuperView:self.view font:UIFont_Px(14) color:UIColor.whiteColor title:@"添加".localizedString];
       [addButton setImage:[UIImage imageNamed:@"pay_add_icon"] forState:UIControlStateNormal];
    addButton.backgroundColor = UIColor.tj_mainColor;
       [addButton setImage:[UIImage imageNamed:@"pay_add_icon"] forState:UIControlStateHighlighted];
    [addButton addTarget:self action:@selector(didClcikAddButton) forControlEvents:UIControlEventTouchUpInside];
       [addButton setImagePosition:LXMImagePositionLeft spacing:3];
    [addButton shearRoundedCornersWithRadiu:3];
        [addButton mas_makeConstraints:^(MASConstraintMaker *make) {
           make.width.offset(156);
           make.centerX.offset(0);
           make.height.offset(36);
            make.top.equalTo(tipLabel.mas_bottom).offset(30);
        }];
    
    
    

}

- (void)didClcikAddButton {
    [self.navigationController pushViewControllerWithName:@"TJPayWayListController" title:nil animated:YES];
}


@end
